const xq='https://m.douban.com/rexxar/api/v2/'
const bq='https://m.douban.com/rexxar/api/v2/'
//querystring:count=5&start=1
const dp='https://m.douban.com/rexxar/api/v2/'
Page({
   onLoad(option){
       console.log(option)
       wx.request({
         url: xq+'/'+option.type+'/'+option.id,
         success:res=>{
             console.log('xq',res)
             let mygenres = res.data.genres.join('/')
             let myactors = res.data.actors.slice(0,3).map(v=>{
                 return v.name
             }).join('/')
             this.setData({
                 xq:res.data,
                 mygenres,
                 myactors
             })
         }
       })
       wx.request({
          url:bq+'/'+option.type+'/'+option.id+'/tags?count=8'
          ,
          success:res=>{
              console.log(res)
              this.setData({
                  bq:res.data
              })
          }
       })
       wx.request({
        url: dp+option.type+'/'+option.id+'/interests?count=5&start=1',
        success:res=>{
            this.setData({
                dp:res.data
            })
           
        }
      })
   }
  
   
})